﻿/****************************************************** 
Writer:Chen Yuanyuan
Mail:184728442@qq.com
Create Date:2025/06/13 22:29:12 
Functional description： Resource
******************************************************/
using Anno.Const.Attribute;
using Anno.EngineData;
using System;
using System.Collections.Generic;
using System.Text;

namespace Anno.Plugs.MonitorService
{
    public class ResourceModule : BaseModule
    {
        //获取服务资源方法
        private static readonly EngineData.SysInfo.UseSysInfoWatch Usi = 
            new EngineData.SysInfo.UseSysInfoWatch();
        /// <summary>
        /// 服务资源信息
        /// </summary>
        /// <returns></returns>
        [AnnoInfo(Desc = "殿下的服务资源信息CPU、Memory")]
        public ActionResult GetServerStatus()
        {
            return new ActionResult(true, Usi.GetServerStatus());
        }


        [AnnoInfo(Desc = "测试方法")]
        public ActionResult GetServerTestStatus()
        {
            return new ActionResult(true, "陈元元的test");
        }



    }
}
